﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.redshift
{
	// Token: 0x02000110 RID: 272
	public class TRedshiftDropDatabase : TCustomSqlStatement
	{
		// Token: 0x17000192 RID: 402
		// (get) Token: 0x060008E8 RID: 2280 RVA: 0x00302ABC File Offset: 0x00300CBC
		// (set) Token: 0x060008E9 RID: 2281 RVA: 0x00302AC4 File Offset: 0x00300CC4
		public virtual TObjectName DatabaseName
		{
			get
			{
				return this.databaseName;
			}
			set
			{
				this.databaseName = value;
			}
		}

		// Token: 0x060008EA RID: 2282 RVA: 0x00302ACD File Offset: 0x00300CCD
		public TRedshiftDropDatabase(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstredshiftDropDatabase;
		}

		// Token: 0x060008EB RID: 2283 RVA: 0x00302AE4 File Offset: 0x00300CE4
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TDummy tdummy = (TDummy)this.rootNode;
			this.databaseName = (TObjectName)tdummy.node1;
			return 0;
		}

		// Token: 0x060008EC RID: 2284 RVA: 0x00302B21 File Offset: 0x00300D21
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x060008ED RID: 2285 RVA: 0x00302B31 File Offset: 0x00300D31
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001232 RID: 4658
		private TObjectName databaseName;
	}
}
